# -*- coding:utf-8 -*-
"""
@Author : 审心
@Time : 2023/3/23 10:03
"""
from config import data as config


def is_dev():
    """
    是否处于开发环境
    :return:
    :rtype: bool
    """
    return config.get("robot.env") == "development"


def is_pro():
    """
    是否处于生产环境
    :return:
    :rtype: bool
    """
    return config.get("robot.env") == "production"


def set_dev():
    config.set("robot.env", "development")


def set_pro():
    config.set("robot.env", "production")
